// Copyright (C) 2017 Nokia

@import "colors";

/******************
*** Code Mirror ***
*******************/
@import "../node_modules/codemirror/lib/codemirror.css";
@import "../node_modules/codemirror/addon/fold/foldgutter.css";
@import "../node_modules/codemirror/addon/dialog/dialog.css";
@import "../node_modules/codemirror/addon/search/matchesonscrollbar.css";

codemirror.cm-mxh-150 {
  .CodeMirror {
    height: auto;
    .CodeMirror-scroll {
      max-height: 150px;
    }
  }
}

// when code mirror is in modal:
//  * assume no other components are in that modal
//  * set the codemirror height to fill almost all of available screen space
.modal-body codemirror .CodeMirror {
  height: calc(100vh - 175px) !important;
}

.CodeMirror {
  border: 1px solid $border;
}

.CodeMirror .CodeMirror-foldmarker {
  text-shadow: none;
}